package com.quanquan.user.repository;

import com.quanquan.user.entity.UserLevelRelationship;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

/**
 * 功能描述:user  Dao层
 *
 * @ClassName: UserRepository
 * @Author: xiaoqianh丶
 * @Date: 2019-03-11 15:08
 * @Version: V1.0
 */
@Repository
public interface UserLevelRelationshipRepository extends JpaRepository<UserLevelRelationship, String>, JpaSpecificationExecutor<UserLevelRelationship> {

    /**
     * 根据会员id查询会员等级id
     * @param userId
     * @return
     */
    public UserLevelRelationship findUserLevelRelationshipByUserIdAndRemove(String userId,Integer remove);


}
